package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.TbCarSell;
import com.ruoyi.system.domain.TbCarTypo;
import com.ruoyi.system.mapper.TbCarSellMapper;
import com.ruoyi.system.mapper.TbCarTypoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbCarStorageMapper;
import com.ruoyi.system.domain.TbCarStorage;
import com.ruoyi.system.service.ITbCarStorageService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2020-06-27
 */
@Service
public class TbCarStorageServiceImpl implements ITbCarStorageService
{
    @Autowired
    private TbCarStorageMapper tbCarStorageMapper;

    @Autowired
    TbCarSellMapper tbCarSellMapper;

    @Autowired
    TbCarTypoMapper tbCarTypoMapper;


    /**
     * 查询【请填写功能名称】
     *
     * @param storageId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public TbCarStorage selectTbCarStorageById(Long storageId)
    {
        return tbCarStorageMapper.selectTbCarStorageById(storageId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param tbCarStorage 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TbCarStorage> selectTbCarStorageList(TbCarStorage tbCarStorage)
    {
        return tbCarStorageMapper.selectTbCarStorageList(tbCarStorage);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param tbCarStorage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTbCarStorage(TbCarStorage tbCarStorage)
    {
        return tbCarStorageMapper.insertTbCarStorage(tbCarStorage);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param tbCarStorage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTbCarStorage(TbCarStorage tbCarStorage)
    {
        return tbCarStorageMapper.updateTbCarStorage(tbCarStorage);
    }

    /**
     * 删除【请填写功能名称】对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTbCarStorageByIds(String ids)
    {
        return tbCarStorageMapper.deleteTbCarStorageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param storageId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTbCarStorageById(Long storageId)
    {
        return tbCarStorageMapper.deleteTbCarStorageById(storageId);
    }


    @Override
    public List<TbCarSell> tan(TbCarSell tbCarSell) {
        return tbCarSellMapper.selectTbCarSellList(tbCarSell);
    }

    @Override
    public List<TbCarTypo> xl(TbCarTypo tbCarTypo) {
        return tbCarTypoMapper.selectTbCarTypoList(tbCarTypo);
    }
}
